import request from '@/utils/request'
// 查询申请列表
export function listRta(query) {
    return request({
      url: '/procurement/rta/list',
      method: 'post',
      data: JSON.parse(JSON.stringify(query))
    })
  }
  // 查询审批人列表详细
export function getApprover() {
  return request({
    url: '/reserve/approverAll',
    method: 'get',
  })
}

//根据ID获取退货单
export function getRtaById(id) {
  return request({
    url: '/procurement/rta/ById/'+id,
    method: 'get',
  })
}
// 修改退货单
export function molRta(data) {
  return request({
    url: '/procurement/rta/updateRta',
    method: 'put',
    data: JSON.parse(JSON.stringify(data))
  })
}

// 删除退货单
export function delRta(id) {
  return request({
    url: '/procurement/rta/delRta/'+id,
    method: 'delete',
  })
}